package com.tsd.jxc.stock.service;

import com.tsd.core.vo.HttpResult;
import com.tsd.core.vo.PageBean;
import com.tsd.jxc.stock.entity.JxcStockWarehouse;
import com.tsd.jxc.stock.entity.JxcStockWarehouseExt;
import com.tsd.system.entity.SysUser;

import java.util.List;
import java.util.Map;

/**
 * 描述：JxcStockWarehouse服务实现层接口
 *
 * @author Hillpool
 * @date 2022/07/29 15:06:33
 */
public interface JxcStockWarehouseService {

    /**
     * 描述：根据id获取JxcStockWarehouse
     *
     * @param id
     */
    JxcStockWarehouse getJxcStockWarehouseById(Long id) throws Exception;

    /**
     * 描述：根据sid获取JxcStockWarehouse
     *
     * @param sid
     */
    JxcStockWarehouseExt queryBySid(String sid) throws Exception;

    /**
     * 描述：根据sid列表删除JxcStockWarehouse
     *
     * @param list
     */
    void deleteJxcStockWarehouses(List<String> list, SysUser opUser) throws Exception;

    /**
     * 描述：保存或更新JxcStockWarehouse
     *
     * @param record
     * @param opUser
     */
    HttpResult<String> saveJxcStockWarehouse(JxcStockWarehouse record, SysUser opUser) throws Exception;

    /**
     * 描述：根据params分页查询JxcStockWarehouse
     *
     * @param params
     * @param page
     */
    List<JxcStockWarehouseExt> findJxcStockWarehouses(Map<String, Object> params, PageBean page) throws Exception;

    /**
     * 描述：根据params分页查询JxcStockWarehouse
     *
     * @param params
     */
    List<JxcStockWarehouseExt> findJxcStockWarehouses(Map<String, Object> params) throws Exception;

}
